package com.gec.teams.wechat.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 功能：
 * 作者：YumTea
 * 日期：2024/6/14 9:49
 */
@Data
@ApiModel("测试参数类")
public class Test {
    @NotBlank
    @Pattern(regexp = "^[\\u4e00-\\u9fa5]{2,15}$",message = "姓名应为2-15中文")
    @ApiModelProperty("姓名:2-15个中文字")
    private  String name;
}
